//	ID: 066498650
//	Exercise #: 2
//	By:	Roy Moore
//
//	Written:	19/12/2011
//	Environment : VS2010
//
//-UDPTimeClientr.h-

#ifndef __UDPTIMECLIENT_H
#define __UDPTIMECLIENT_H

#include "UDPTime.h"

//------------------Prototypes----------------------------------------------
void StartClient(SOCKET connSocket);
void SelectService(SOCKET connSocket, MsgInfo *info, sockaddr * to_addr);
void PrintServices();
void GetTime(SOCKET connSocket, MsgInfo *info, sockaddr * to_addr);
void GetTimeWithoutYear(SOCKET connSocket, MsgInfo *info, sockaddr * to_addr);
void GetTimeSinceEpoch(SOCKET connSocket, MsgInfo *info, sockaddr * to_addr);
void GetClientToServerDelayEstimation(SOCKET connSocket, MsgInfo *info, sockaddr * to_addr);
void MeasureRTT(SOCKET connSocket, MsgInfo *info, sockaddr * to_addr);
void GetDayAndMounth(SOCKET connSocket, MsgInfo *info, sockaddr * to_addr);
void GetYear(SOCKET connSocket, MsgInfo *info, sockaddr * to_addr);
void GetTimeVar(SOCKET connSocket, MsgInfo *info, sockaddr * to_addr); //For Options a/b/c/f/g : Basic send & recive

#endif // __UDPTIMECLIENT_H